/**
 * @author zunqiang.Yi
 * @time 2023-10-21 11:04 AM
 * @decription 进行路由配置和路由拦截
 * */
import { Router , createRouter, createWebHistory} from "vue-router";
import routes from "./routes";
import interceptor from "./interceptor";

const router:Router = createRouter({
    history: createWebHistory(),
    routes: routes
})

router.beforeEach(interceptor)

export default router;